<%
    lw = 150
    has_photo = !@user.photo.nil?
    photo_url = has_photo ? url_for_file_column(@user, "photo") : "no_user_photo"
%>
<h1 class="library_title">User Profile</h1>
<div class="horizontal_line"></div>
<div class="profile" >
    <table class="profile_data" >
        <tr>
            <th>First Name:&nbsp;</th>
            <td><%= h @user.first_name %></td>
            <td rowspan="7" class="user_photo"><%= image_tag(photo_url) %></td>
        </tr>
        <tr><th>Last Name:&nbsp;</th><td><%= h @user.last_name %></td></tr>
        <tr><th>Email:&nbsp;</th><td><%= h @user.email %></td></tr>
        <tr><th>Type of user:&nbsp;</th><td><%= h @user.user_type %></td></tr>
        <tr><th>Phone:&nbsp;</th><td><%= h @user.phone %></td></tr>
        <tr><th>IM:&nbsp;</th><td><%= h @user.im %></td></tr>
        <tr><th>Description:&nbsp;</th><td><%= h @user.description %></td></tr>
    </table>
</div>
<div class="horizontal_line"></div>